package pers.gxm.security.hello.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import pers.gxm.security.hello.common.R;
import pers.gxm.security.hello.pojo.User;
import pers.gxm.security.hello.service.SignUpService;

@RestController
public class SignUpController {
    @Autowired
    private SignUpService signUpService;
    @PostMapping("/user/signUp")
    public R signUp(@RequestBody User user){
        System.out.println("进入注册接口");
        return signUpService.signUp(user);

    }
}
